<?php
	require("connect.php");
	$uid = $_REQUEST["txtid"];
	$uname = $_REQUEST["txtuname"];
	//$pImage = $_REQUEST["file"];
	//move_uploaded_file($_REQUEST["file"]["tmp_name"], "images/".$pImage);
	$gid = $_REQUEST["txtgid"];
	$gender = $_REQUEST["txtgender"];
	$age = $_REQUEST["txtage"];
	$address = $_REQUEST["txtaddress"];
	$email = $_REQUEST["txtemail"] ;
	$phone = $_REQUEST["txtphone"];
	$status = $_REQUEST["txtstatus"];
	$fullname = $_REQUEST["txtfullname"];
	$sqlUpdate = "Update user set uname = '{$uname}', gid= {$gid},gender = {$gender},age = {$age},address = '{$address}', email = '{$email}',phone = '{$phone}',status = {$status},fullname = '{$fullname}' where uid = {$uid}";
	mysql_query($sqlUpdate) or die ("Not excute command ".$sqlUpdate);
	mysql_close();
	echo "<script>window.location='user_detail.php';</script>";
?>
